
# mkdir -p /data/project/yapi/conf && cd /data/project/yapi
# docker run -it linuxhub/yapi:1.8.3 cat config.json > conf/config.json
# vim conf/config.json


docker run -d \
--name yapi \
--restart=always \
-p 3000:3000 \
-v /data/project/yapi/conf/config.json:/usr/src/yapi/config.json \
linuxhub/yapi:1.8.3

# 初始化数据库
# docker exec -it yapi ./install.sh

# docker exec -it yapi pm2 list
# docker exec -it yapi pm2 logs
# docker exec -it yapi pm2 restart yapi
